<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/28
 * Time: 14:46
 */

class Involved_PayModeModel extends BaseModel
{
    protected $table = 'pay_mode';

    /**
     * 获取默认支付信息
     * @return mixed
     * @author alice
     * @date 2016-2-23
     */
    public function GetPayModeDefault()
    {
        return  DB::table($this->table)
                ->select('pay_mode_id', 'pay_code')
                ->where('is_default',1)
                ->first();
    }

    /**
     * 获取支付列表
     * @return mixed
     * @author alice
     * @date 2016-2-23
     */
    public function GetPayModeList()
    {
        return  DB::table($this->table)
            ->select('pay_mode_id', 'pay_code')
            ->get();
    }

}